home *** CD-ROM | disk | FTP | other *** search
Text File | 1990-03-23 | 940 b | 29 lines | [TEXT/GEOL] |
- Item 3823778 23-March-90 10:05PST
-
- From: MADA.EUROPE MacApp Dev Assoc Eur,E Carrasco,IDV
-
- To: CPLUS.DEV$ C++ Interest List--Developers
-
- cc: CPLUS.APPLE$ C++ Interest List--Apple Employees
-
- Sub: Dead Code Stripping with C++
-
- RE: Dead Code Stripping with C++
-
- Hi Etienne,
-
- gDeadStripSuppression is always false. So the code following code will never be
- executed. (We're speaking about MacApp 2.0B9 and later)
-
- TFoo* aFoo = new TFoo // called to prevent dead code stripping.
-
- If TFoo is a nested view of a complex view, you may use viewEdit to draw it
- and then call NewTemplateWindow. NewTemplateWindow will instantiate your TFoo
- view by name. Your code will never instanciate TFoo view directely, so the
- linker will strip the code for TFoo class.
-
- aFoo.Free is not needed and will make your code longer.
-
- Eric
-
-